package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.LitemallProvinceMapper;
import org.linlinjava.litemall.db.domain.LitemallProvince;
import org.linlinjava.litemall.db.domain.LitemallProvinceExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class LitemallProvinceService {

    @Resource
    private LitemallProvinceMapper provinceMapper;

    public List<LitemallProvince> allProvinces(){
        LitemallProvinceExample example = new LitemallProvinceExample();

      return   provinceMapper.selectByExampleSelective(example);
    }

    public void addProvince(LitemallProvince province){
           provinceMapper.insertSelective(province);
    }


}
